package com.sample.mapping;

import java.util.LinkedHashMap;

import javax.persistence.Column;

//rowkey userid and column name UUID and value follower userid
public class Follower<T> extends AbstractMapping<T> {
		
		@Column(name = "generateTimeId")
		private LinkedHashMap<T,T> followerMap;

		public LinkedHashMap<T,T > getFollowerMap() {
			return followerMap;
		}

		public void setFollowerMap(LinkedHashMap<T, T> followerMap) {
			this.followerMap = followerMap;
		}

		@Override
		public int hashCode() {
			final int prime = 31;
			int result = super.hashCode();
			result = prime * result
					+ ((followerMap == null) ? 0 : followerMap.hashCode());
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (!super.equals(obj))
				return false;
			if (getClass() != obj.getClass())
				return false;
			Follower other = (Follower) obj;
			if (followerMap == null) {
				if (other.followerMap != null)
					return false;
			} else if (!(followerMap.size() == other.getFollowerMap().size()))
				return false;
			return true;
		}
		
		
		
}
